<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8"/>
	<title>新增</title>
	<meta name="renderer" content="webkit" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
	<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	<meta name="apple-mobile-web-app-capable" content="yes"/>
	<meta name="format-detection" content="telephone=no"/>
	<link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all" />
	<link rel="stylesheet" th:href="@{/css/user.css}" media="all" />
	<link rel="stylesheet" type="text/css" th:href="@{/js/plugins/TUpload/css/upload.css}" />
</head>
<body class="childrenBody">
<form class="layui-form" id="couponAddForm">
    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">cId</label>
        <div class="layui-input-block">
            <input type="text" th:value="${coupon.cId}" name="cId"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">id</label>
        <div class="layui-input-block">
            <input type="text" th:value="${coupon.id}" name="id"  class="layui-input"/>
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">title</label>
        <div class="layui-input-block">
            <input type="text" th:value="${coupon.title}" name="title"  class="layui-input" lay-verify="required"/>
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">serialNum</label>
        <div class="layui-input-block">
            <input type="text" th:value="${coupon.serialNum}" name="serialNum"  class="layui-input" lay-verify="required"/>
        </div>
    </div>

    <div class="layui-form-item" >
        <label class="layui-form-label">tName</label>
        <div class="layui-input-block">
            <input type="text" readonly="readonly" th:if="${not #strings.isEmpty(coupon.tName)}" th:value="${coupon.tName}" name="tName"  class="layui-input" />
            <input type="text" readonly="readonly" th:if="${#strings.isEmpty(coupon.tName)}" value="猫眼" name="tName"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item" pane="">
        <label class="layui-form-label">ifUse</label>
        <div class="layui-input-block userSex">
            <input type="radio" name="ifUse" value="0" title="是"/>
            <input type="radio" name="ifUse" value="1" title="否" checked="" />
        </div>
    </div>
    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">createId</label>
        <div class="layui-input-block">
            <input type="text" th:value="${coupon.createId}" name="createId"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">createTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="createTime" placeholder="请输入日期" lay-verify="required" onclick="layui.laydate({elem: this,max: laydate.now()})" class="layui-input userBirthday"/>
        </div>
    </div>
    <div class="layui-form-item" style="display:none">
        <label class="layui-form-label">updateId</label>
        <div class="layui-input-block">
            <input type="text" th:value="${coupon.updateId}" name="updateId"  class="layui-input" />
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">updateTime</label>
        <div class="layui-input-block">
            <input type="text" value="" name="updateTime" placeholder="请输入日期" lay-verify="required" onclick="layui.laydate({elem: this,max: laydate.now()})" class="layui-input userBirthday"/>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">type</label>
        <div class="layui-input-block">
            <select name="type" class="newsLook" lay-filter="browseLook" id="navType">
                <!--<option th:each="nav,iterStat:${sList}" th:value="${iterStat.index}" th:text="${nav}" th:if="${nav}==${coupon.tName}" selected="selected"></option>-->
                <option th:each="nav,iterStat:${sList}" th:value="${iterStat.index}" th:text="${nav}" ></option>
            </select>
        </div>
    </div>


    <div class="layui-form-item" style="margin-left: 5%;">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="submitCoupon" lay-filter="submitCoupon">立即提交</button>
			<button class="layui-btn layui-btn-primary" id="resetBtn">重置</button>
		</div>
	</div>
</form>
<script type="text/javascript" th:src="@{/js/plugins/FroalaEditor/js/jquery-1.9.1.min.js}"></script>
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/common/address.js}"></script>
<script type="text/javascript" th:src="@{/js/plugins/TUpload/js/T_upload.js}"></script>
<script type="text/javascript" th:src="@{/js/coupon/couponAdd.js}"></script>
</body>
</html>